package cc.wenshixin.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import cc.wenshixin.dao.VisitDao;
import cc.wenshixin.entity.Visit;

@Transactional
public class VisitService {
	private VisitDao visitDao;
	public void setVisitDao(VisitDao visitDao) {
		this.visitDao = visitDao;
	}

	public void add(Visit visit) {
		visitDao.add(visit);
	}

	public List<Visit> findAll() {
		return visitDao.findAll();
	}

	public Visit findOne(int id) {
		return visitDao.findOne(id);
	}

	public void delete(Visit visit) {
		visitDao.delete(visit);
	}

	public void update(Visit visit) {
		visitDao.update(visit);
	}

	public List<Visit> selectMoreCondition(Visit visit) {
		return visitDao.selectMoreCondition(visit);
	}
}
